package com.deyuanyun.pic.pbf.controller.dto.defect.node;

import com.deyuanyun.pic.pbf.controller.dto.defect.DefaultCommand;
import com.deyuanyun.pic.pbf.controller.dto.defect.ImgDto;
import com.deyuanyun.pic.settings.domain.base.Attachment;
import com.deyuanyun.pic.settings.support.biz.AttachmentUtil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author huanglw
 * @date
 *
 * History: [修改人][时间][修改描述]
 */
public class NodeDto extends DefaultCommand {

    /**
     * 备注
     */
    private String remark;

    private Map<String, List<ImgDto>> imgList;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Map<String, List<ImgDto>> getImgList() {
        return imgList;
    }

    public void setImgList(Map<String, List<ImgDto>> imgList) {
        this.imgList = imgList;
    }


    public void fromDomain(String businessId, String remark) {

        // 备注
        this.remark = remark;
        // 图片
        this.imgList = ImgDto.queryImgDtoMapList(businessId);
    }


}
